package com.bdqn.Service.Contract;

import com.bdqn.entity.Contract;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ContractService {
    /**
     * 添加
     */
    boolean Insert(@Param("con") Contract contract);
    /**
     * 分页查
     */
    List<Contract> findAll(@Param("con") Contract ord, @Param("page")int page, @Param("limit" )int limit);

    /**
     * 查询总个数
     */
    int getCount(@Param("con") Contract ord);

    boolean Update(Contract contract);
    /**
     * Contract
     */
    Contract SelectByCont(@Param("con") Contract contract);

    /**
     * 根据id删除
     * @param contract
     * @return
     */
    boolean DelById(Contract contract);

    /**
     * 根据多条件查询
     * @param ord
     * @return
     */
    public List<Contract> SelectContract(Contract ord,int page, int limit);
    /**
     * 获取总条数
     * @param ord
     * @return
     */
    int SelectContractCount(Contract ord);
}
